package world.unit.weapon.shot;

import util.VectorUtil;
import world.World;

/**
 * defines a shot, this created and added to the shot engine via {@link world.unit.weapon.Weapon}
 * @author jack
 *
 */
public final class Shot
{
	private double[] location;
	private double[] target;
	private double range;
	private double speed;
	
	/**
	 * creates a new shot
	 * @param location the location the shot is created at
	 * @param target the target vector the shot travels in
	 * @param range the range of the shot
	 * @param speed the speed the shot travels in the target vector
	 */
	public Shot(double[] location, double[] target, double range, double speed)
	{
		this.location = location;
		this.target = VectorUtil.normalize(target);
		this.range = range;
		this.speed = speed;
	}
	public void updateShot(double tdiff, World w)
	{
		
	}
}
